RequestPausedEvent

data class RequestPausedEvent(requestId: RequestId, request: Request, frameId: FrameId, resourceType: ResourceType, responseErrorReason: ErrorReason?, responseStatusCode: Int?, responseHeaders: List<HeaderEntry>?, networkId: RequestId?) : Event

Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise.

Constructors

RequestPausedEvent
Link copied to clipboard
fun RequestPausedEvent(requestId: RequestId, request: Request, frameId: FrameId, resourceType: ResourceType, responseErrorReason: ErrorReason? = null, responseStatusCode: Int? = null, responseHeaders: List<HeaderEntry>? = null, networkId: RequestId? = null)

Functions

domain
Link copied to clipboard
open override fun domain(): String
Returns domain name for which event was generated.
eventName
Link copied to clipboard
open override fun eventName(): String
Returns event name as described in protocol.

Properties

frameId
Link copied to clipboard
val frameId: FrameId
The id of the frame that initiated the request.
networkId
Link copied to clipboard
val networkId: RequestId? = null
If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.
request
Link copied to clipboard
val request: Request
The details of the request.
requestId
Link copied to clipboard
val requestId: RequestId
Each request the page makes will have a unique id.
resourceType
Link copied to clipboard
val resourceType: ResourceType
How the requested resource will be used.
responseErrorReason
Link copied to clipboard
val responseErrorReason: ErrorReason? = null
Response error if intercepted at response stage.
responseHeaders
Link copied to clipboard
val responseHeaders: List<HeaderEntry>? = null
Response headers if intercepted at the response stage.
responseStatusCode
Link copied to clipboard
val responseStatusCode: Int? = null
Response code if intercepted at response stage.

Sources

jvm source
Link copied to clipboard